import './index.html';
import './index.css';
import dva from 'dva';
import 'normalize.css';
import 'es6-promise/auto';
import { getQueryStringByName } from '~/utils/common';

const docEl = document.documentElement;
const screenWidth = docEl.getBoundingClientRect().width || window.innerWidth;
window.document.documentElement.style.fontSize = (screenWidth / 640 * 32) + 'px';
// 1. Initialize
const app = dva();

// 2. Plugins
//app.use({});

// 3. Model
app.model(require('./models/User'));

// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
